﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Web.Mvc;

namespace Gfw.Web.Models.User
{
    /// <summary>
    /// 修改用户登录密码
    /// </summary>
    public class UserLoginPasswordModel
    {
        [Key]
        [Required]
        [DataType(DataType.Text)]
        [Display(Name = "用户登录名：")]
        public string LoginName { get; set; }

        [Required]
        [DataType(DataType.Password)]
        [Display(Name = "原密码：")]
        public string OldPassword { get; set; }

        [Required]
        [DataType(DataType.Password)]
        [Display(Name = "新密码：")]
        public string NewPassword { get; set; }

        [DataType(DataType.Password)]
        [Display(Name = "确认密码：")]
        [Compare("NewPassword", ErrorMessage = "两次密码输入不一致.")]
        public string ConfirmPassword { get; set; }
    }
}
